package com.mty.kjtest.Http;

import com.mty.kjtest.Configure.HttpUrl;
import com.mty.kjtest.Model.MovieEntity;
import com.mty.kjtest.Model.User;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by 天宇 on 2017/6/30.
 * 网络请求
 */
public interface Network {




    @GET("top250")
    Observable<MovieEntity> getTopMovie(@Query("start") int start, @Query("count") int count);


    @GET(HttpUrl.Login)
    Observable<User> getTestModel(@Query("name") String name, @Query("password") String password);


}
